PMAP Function ---------------------------------------------------------------------------- Action Returns the window coordinate equivalent to a specified viewport coordinate, or the viewport coordinate equivalent to a specified window coordinate. Syntax PMAP ( expression#, n%) Remarks The argument expression# specifies the known coordinate, either an x coordinate or y coordinate, in the window or in the viewport. The argument n% specifies the mapping function and can have one of the four following values. ----------------------------------------------------------------------------- If expression is n must be Returns. ---------------------------------------------------------------------------- Window x coordinate 0 Viewport x coordinate Window y coordinate 1 Viewport y coordinate Viewport x coordinate 2 Window x coordinate Viewport y coordinate 3 Window y coordinate The four PMAP functions allow you to find equivalent point locations between the window coordinates created with the WINDOW statement and the absolute screen coordinates or viewport coordinates as defined by the VIEW statement. If no VIEW statement has been executed, or the most recently executed VIEW statement has no arguments, the viewport coordinates are equivalent to the absolute screen coordinates established by the most recently executed SCREEN statement. See Also POINT, VIEW, WINDOW Example See the WINDOW statement programming example, which uses the PMAP function.